<template>
  <el-row :gutter="20">
    <el-col :span="8" :xl="8" :lg="8" :md="8" :sm="24" :xs="24">
      <el-card class="profile-tabs">
        <template #header>
          <div class="card-header">
            <span>个人信息</span>
          </div>
        </template>
        <ProUser></ProUser>
      </el-card>
    </el-col>
    <el-col :span="16" :xl="16" :lg="16" :md="16" :sm="24" :xs="24">
      <el-card class="profile-tabs">
        <template #header>
          <div class="card-header">
            <span>基本资料</span>
          </div>
        </template>
        <el-tabs v-model="activeName" class="demo-tabs">
          <el-tab-pane label="基本资料" name="first">
            <BasicUser></BasicUser>
          </el-tab-pane>
          <el-tab-pane label="修改密码" name="second">
            <ResetPwd></ResetPwd>
          </el-tab-pane>
        </el-tabs>
      </el-card>
    </el-col>
  </el-row>
</template>

<script setup lang="ts">
import { ref } from "vue";
import type { TabsPaneContext } from "element-plus";
import ProUser from "../../components/ProUser/index.vue";
import BasicUser from "../../components/BasicUser/index.vue";
import ResetPwd from "../../components/ResetPwd/index.vue";

const activeName = ref("first");
</script>

<style lang="scss" scoped>
.card-header {
  display: flex;
  justify-content: center;
  align-items: center;
}
.profile-tabs {
  padding: 30px;
  height: 500px;
}
</style>
